package com.snack.entity.admin;

import com.snack.entity.BasicEntity;

/**
 * 管理员实体
 * 
 * @author codemonkey
 * 
 */
public class User extends BasicEntity {

	/**
	 * 用户名
	 */
	private String name;

	/**
	 * 密码
	 */
	private String password;

	/**
	 * 所属角色
	 */
	private int roleId;

	public User() {
		super();
	}

	public User(String name, String password, int roleId) {
		super();
		this.name = name;
		this.password = password;
		this.roleId = roleId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

}
